package com.leetcode.LeetCode精选TOP面试题;

/**
 * @author 覃国强
 * @date 2022-06-28 17:30
 */
public class 题库_0136_只出现一次的数字 {

    static
    class Solution {
      public int singleNumber(int[] nums) {
        int answer = 0;
        for (int num : nums) {
          answer ^= num;
        }
        return answer;
      }
    }
}
